package com.scalar.chiptrack.db;

import java.sql.*;

/**
 * User: sujan
 * Date: Mar 27, 2011
 * Time: 2:35:52 PM
 *
 * Database utility class.
 */
public class DBUtil {

	public static void close(Connection conn, ResultSet rset, Statement stmt) {
		if (rset != null) {
			try {
				rset.close();
			} catch (SQLException ignore) {
			}
		}
		if (stmt != null) {
			try {
				stmt.close();
			} catch (SQLException ignore) {
			}
		}
		if (conn != null) {
			try {
				conn.close();
			} catch (SQLException ignore) {
			}
		}
	}
}
